package com.lgy.springboot_example.redis;

import org.springframework.stereotype.Service;

@Service
public class RedisMsgReceiver {

    public void receiverMsg(String msg) {
        System.out.println("myChat收到一条新的消息，内容：" + msg);
    }

    public void receiverMsg2(String msg) {
        System.out.println("myChat-2收到一条新的消息，内容：" + msg);
    }

}
